home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / dev / asm / ESA.readme < prev    next >
Text File  |  1999-03-02  |  2KB  |  58 lines

  1. Short:    Extended Syntax Assembly v1.6
  2. Author:   bevilacq@cli.di.unipi.it (Simone Bevilacqua)
  3. Uploader: bevilacq@cli.di.unipi.it (Simone Bevilacqua)
  4. Type:     dev/asm
  5. Requires: 020+ CPU, KS 2.0
  6. Replaces: dev/asm/ESA.lha
  7.  
  8. Ever heard of "inline asm" inside C, Pascal, etc. ?
  9. Well, here we have "inline C, Pascal, etc." inside asm!
  10.  
  11.  
  12. Look below: that's a small sample of ESA code!!!
  13.  
  14.  
  15.                 procedure CpyQtd{a1-a2},d0-d1/a1-a2
  16.                 move.b       (a1)+,d0                 ;get "quote"
  17.                 repeat
  18.                  move.b      (a1)+,d1
  19.  
  20.                  switch.s d1.b
  21.                  -> d0                                ;successful copy
  22.                     clr.b    (a1)                     ;NULL-termination
  23.                     moveq.l  #0,d1                    ;exit loop
  24.                  -> #0                                ;unvalid char, exit loop
  25.                     suba.l   a1,a1                    ;please, let it be...
  26.                  -> #10                               ;unvalid char
  27.                     moveq.l  #0,d1                    ;exit loop
  28.                     suba.l   a1,a1                    ;please, let it be...
  29.                  def
  30.                     move.b   d1,(a2)+                 ;copy char
  31.                  eswitch
  32.  
  33.                 until.s ~d1.b
  34.                 movea.l      a1,a0                    ;new string ptr
  35.  
  36.                 eproc
  37.  
  38.  
  39. ============================= Archive contents =============================
  40.  
  41. Original  Packed Ratio    Date     Time    Name
  42. -------- ------- ----- --------- --------  -------------
  43.    23988   12361 48.4% 18-Dec-98 03:44:34 +ESA
  44.   103062   31400 69.5% 18-Dec-98 03:44:30 +ESA.guide
  45.     2830     978 65.4% 18-Dec-98 03:44:28 +MergeSort.ei
  46.     1726     730 57.7% 18-Dec-98 03:44:28 +QuickSort.ei
  47.     2714    1012 62.7% 18-Dec-98 03:44:28 +data.i
  48.     1219     452 62.9% 18-Dec-98 03:44:28 +defs.i
  49.      898     348 61.2% 18-Dec-98 03:44:28 +main.esa
  50.     6789    2066 69.5% 18-Dec-98 03:44:28 +misc.ei
  51.     6640    2305 65.2% 18-Dec-98 03:44:28 +opt.ei
  52.     1915     871 54.5% 18-Dec-98 03:44:28 +split.ei
  53.      526     283 46.1% 18-Dec-98 03:44:28 +do
  54.    12488    4475 64.1% 18-Dec-98 03:44:30 +sss.guide
  55.      191     101 47.1% 18-Dec-98 03:44:28 +tab.txt
  56. -------- ------- ----- --------- --------
  57.   164986   57382 65.2% 18-Jan-99 23:18:30   13 files
  58.